package exception;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLDataException;

public class ThroesDemo {
    public void dosome() throws IOException, AWTException{

    }
    public static void main(String[] args) {

    }
}
class SubClass extends ThroesDemo{
    //可以抛出的异常
    //平级异常，子类异常
    //public void dosome()throws IOException{}
    //public void dosome()throws IOException,AWTException{}
//    public void dosome()throws FileNotFoundException{}
//    public void dosome() {}
//    public void dosome()throws NullPointerException{}
//    public void dosome()throws ArrayIndexOutOfBoundsException{}
//    public void dosome()throws IndexOutOfBoundsException{}

    //不可以抛出的异常
    //超类异常
    //public void dosome()throws Exception{}
    //public void dosome()throws SQLDataException{}

}